/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=0;i<12;i++)
     ^~~
/in/foo.cc:8:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         ans+=300;
         ^~~
/in/foo.cc:9:9: error: 'sum' was not declared in this scope
         sum-=n;
         ^~~
/in/foo.cc:12:24: error: 'i' was not declared in this scope
             cout<<"-"<<i+1<<endl;
                        ^
/in/foo.cc: At global scope:
/in/foo.cc:18:5: error: 'cout' does not name a type
     cout<<ans+ma*1.2<<endl;
     ^~~~
/in/foo.cc:19:5: error: expected unqualified-id before 'return'
     return 0;
     ^~~~~~
/in/foo.cc:20:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1096 津津的储蓄计划
语言
C++
递交时间
2025-01-24 11:14:20
评测时间
2025-01-24 11:14:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes