Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100195 张之隽 A+B 输入输出练习III C++ Compile Error 0 MS 0 KB 268 2024-12-06 20:32:49

Tests(0/0):


Code:

#include <iostream> using namespace std; const int N=1e6; int main(){ #ifdef ONLINE_JUDGE #else freopen("in.txt","r",stdin); #endif int a,b; for(int i=0;i<N;i++){ scanf("%d %d",&a,&b); if(a==0&&b==0) break; printf("%d\n",a+b); } ret


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:1: error: 'ret' was not declared in this scope
 ret
 ^
Main.cc:16:1: error: expected '}' at end of input
Main.cc:12:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&a,&b); 
                      ^